<template>
	<view v-if="name">
		<view class="commonTextBox">
			<view class="commonTextBoxLeft">{{name}}<span v-if="showPoint">: </span> </view>
			<view class="commonTextBoxRight">{{value}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "commonText",
		props: {
			name: {
				default: '',
				type: String
			},
			value: {
				default: '',
				type: String
			},
			showPoint:{
				default: true,
				type: Boolean
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss" scoped>
	.commonTextBox {
		display: flex;
		align-items: center;
		margin-top: 20rpx;

		.commonTextBoxLeft {
			font-size: 25rpx;
			font-weight: 800;
		}

		.commonTextBoxRight {
			margin-left: 15rpx;
			padding-right: 20rpx;
					font-size: 25rpx;
		}
	}
</style>